package com.gitee.andy.repo.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gitee.andy.ioc.Bean;
import com.gitee.andy.ioc.Inject;
import com.gitee.andy.repo.ItemRepo;
import com.gitee.andy.repo.UserRepo;

@Bean(name = "itemRepo")
public class ItemRepoImpl implements ItemRepo {

	private static final Logger log = LoggerFactory.getLogger(ItemRepoImpl.class);

	@Inject
	private UserRepo userRepo;

	@Override
	public void printInjects() {
		log.info("has inject {} ", userRepo == null ? null : userRepo.getClass().getName());
	}

}
